package com.fattiger.framework.sessionshare.session;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

public interface SessionManager {

    public static final String SESSION_COOKIE_KEY="session_token";

    public static final String SESSION_EXPIRE_KEY="session_expire";

    public static final int DEFAULT_SESSION_EXPIRE = 60 * 5;//5分钟

    public Session getSession(HttpServletRequest request,boolean create) throws IOException;
}
